Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Functions
Manipulating Items in Dialog and Alert Boxes /


SizeDialogItem

NEW WITH THE APPEARANCE MANAGER

Sizes a dialog item.

pascal OSErr SizeDialogItem (
                     DialogPtr inDialog,
                     SInt16 inItemNo,
                     SInt16 inHeight,
                     SInt16 inWidth);
inDialog
A pointer to a dialog structure.
inItemNo
A signed 16-bit integer representing the dialog item number within the item list.
inHeight
A signed 16-bit integer representing the desired height (in pixels) of the dialog item's control rectangle.
inWidth
A signed 16-bit integer representing the desired width (in pixels) of the dialog item's control rectangle.
function result
A result code; see "Result Codes".
DISCUSSION
The SizeDialogItem function resizes a dialog item to a specified size. If the dialog item is a control, the control rectangle and the dialog item rectangle (maintained by the Dialog Manager) are always the same.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998